<?php

namespace App\Console\Commands;

use App\depository\PlayerSecretDep;
use Illuminate\Console\Command;
use GuzzleHttp\Client;

class ActiveExpCmd extends Command{

    public $signature = 'active:exp';

    public function handle()
    {
        log_daily('active')->info('begin');

        $dep = new PlayerSecretDep();

        $resList = $dep->getExp();
        $resList->each(function($item) use ($dep){
            $dep->del($item->id);
        });

        log_daily('active')->info('end');

    }

}


